<?php
namespace App\Http\Controllers\ApiApp;

use App\Service\ApiApp\MapService;
use Illuminate\Http\Request;

class MapController extends BaseController
{
    //地图

    //层列表
    public function index(Request $request)
    {
        $res = MapService::index();
        if ($res['code'] < 0) {
            return self::toJson(-2, $res['msg']);
        }
        return self::toJson(0, '', $res['data']);
    }
}